package com.lili.operate.service;

import com.lili.model.operate.SearchHotWords;

import java.util.List;

public interface HotWordsService {

    /**
     * 设置热词
     * @param searchHotWords
     * @return
     */
    public int saveHotWords(SearchHotWords searchHotWords);

    /**
     * 根据日期查询历史热词
     * @return
     */
    public List<SearchHotWords> queryHistoryWords(String time);

    /**
     * 根据日期查看近七天最受欢迎的热词
     * @param time
     * @return
     */
    public List<SearchHotWords> queryRecentlyWords(String time);

    /**
     * 根据id删除热词
     * @param id
     * @return
     */
    public int deleteWords(long id);
}
